<?php $this->load->view(TEMPLATE_NAME.'/front/header'); ?>
<?php $this->load->view(TEMPLATE_NAME.'/front/login_left'); ?>
<script type="text/javascript" src="<?php echo base_url()?>js/jquery.validate.pack.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	var result_email = true;
	$.validator.addMethod("emailCheck", function(val, elem) {                                                
        $.post("<?php echo site_url('json_request/check_directory_email')?>" ,{
             email: $('#email').val()                                  
        },function(data){
            result_email = (data=="TRUE") ? true : false;
        }, "json");
        return result_email;
    });
    
    $("#form_email_update").validate({
    	onkeyup: false,                 
        rules: {            
            email: {                
                required : true,                
                email : true,
                emailCheck: true            
            }                    
        },        
        messages: {           
            email: {                
                required : "Please input your e-mail address",                
                email : "Please input a valid e-mail address",
                emailCheck : "The e-mail address already exists in the database"            
            }            
        }          
      });
});
</script>
<style type="text/css" title="text/css">
/* Style for jquery validation */
#form_email_update label.error {    
    background-color: #cccc00;    
    color: #000;    
    padding: 5px 10px;    
    width: 388px;    
    margin: 0 0 0 153px;    
    float: none;    
    height:19px;    
    line-height:19px;
    position:relative;
    display:block;
    font-weight: normal;
}
</style>
<div class="page">
<h2>List your company in the directory for FREE</h2>

<div>

            		<img height="42" width="53" alt="" src="<?php echo site_url();?>images/tickMark.png" class="tick">		
                    <div class="tick_div">
                		<p class="redTxt3">your registration was successful</p>
                	</div>
                	<div class="clear"></div>
                    </div>
                    <div class="height10_10"></div>
                   
                    <h2>please activate your account</h2>
                    <p class="font17">An e-mail has been sent to <span style="color:#CF118C;"><?php echo ($user_email);?></span></p>
                    <p class="font17">Please have a  look at this e-mail now and click on the link in there to activate your account and start advertising.</p>
                    <p class="font17">No e-mail - please give it a few minutes and if no e-mail arrive, please check your junk mail </p>
                    
<?php /*?><p class="purple f15"><strong>Well done - you have completed the first step in the sign up</strong><br/>
<hr />
<span class="f15 fade_black">Have a look at the e-mail we have just sent you<br/>
Please check your e-mail now to validate your e-mail address. <br/>
<strong>Click on the confirmation link in that e-mail to complete your sign up</strong>.</span></p>
<hr/><?php */?>

<?php 
$form_atribute = array('class'=>'formstep');
echo form_open('register/signup_success/'.$directory_user_id,$form_atribute);
?>

<?php /*?><p class="f14 fade_black">If you have not received the e-mail within a few minutes, check that the e-mail has not been sent to your SPAM folder. 
Then click resend e-mail button below to have it sent to you again.</p><?php */?>
<?php 
$form_resend_button = array(
  'type'=>'submit',
  'name'=>'submit',
  'value'=>'resend',
  'content'=>'Resend Activation E-mail',
);
echo form_button($form_resend_button) ?>

<?php echo form_close(); ?>


</div>
<?php $this->load->view(TEMPLATE_NAME.'/front/side_right'); ?>
<?php $this->load->view(TEMPLATE_NAME.'/front/footer'); ?>
